using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using Abp.Domain.Entities;
using Abp.Domain.Entities.Auditing;

namespace Yozeev.BusinessLogic
{
    /// <summary>
    /// 游客信息
    /// </summary>
    public class Login 
    {
        /// <summary>
        /// 姓名,旅行社名称
        /// </summary>
        [Required(ErrorMessage = "姓名不能为空")]
        [StringLength(50)]
        public string LoginName { get; set; }
        /// <summary>
        /// 登陆密码
        /// </summary>
        public string LoginPwd { get; set; }

        /// <summary>
        /// 验证码
        /// </summary>
        public string VerificationCode { get; set; }
        /// <summary>
        /// 是否记住密码
        /// </summary>
        public bool RememberClient { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string ReturnUrl { get; set; }

        [DefaultValue("Reception")]
        public string SourceCode { get; set; }

        public Login()
        {
            SourceCode = "Reception";
        }
        /// <summary>
        /// 是否是旅行社登录
        /// </summary>
        public bool IsTravel { get; set; }
    }
}
